

package net.jjjshop.admin.param;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 部门 查询参数对象
 */
@Data
@Accessors(chain = true)
@Schema(name = "MessageParam对象")
public class MessageParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Integer messageId;

    @NotBlank(message = "消息名称不能为空")
    @Schema(description = "消息名称")
    private String messageName;

    @NotBlank(message = "消息英文名不能为空")
    @Schema(description = "消息英文名")
    private String messageEname;

    @NotNull(message = "通知对象不能为空")
    @Schema(description = "通知对象,10会员20,商家")
    private Integer messageTo;

    @NotNull(message = "消息类别不能为空")
    @Schema(description = "消息类别,10订单20分销")
    private Integer messageType;

    @Schema(description = "描述")
    private String remark;

    @Schema(description = "消息排序")
    private Integer sort;
}
